package com.cheng.im.service.frienship.model.req;

import com.cheng.im.service.common.model.RequestBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@ApiModel("IM更新好友关系请求类")
public class UpdateFriendReq extends RequestBase {

    @NotBlank(message = "fromId不能为空")
    @ApiModelProperty("请求更新的用户ID")
    private String fromId;

    @NotNull(message = "toItem不能为空")
    private FriendDto toItem;
}
